package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * @Author wpj
 * @Date 2020/10/29
 */
@FieldTypeAnnotation(tableName = "t_l_ck_huashigang_choose_patrons", desc = "花石纲选择门客加成日志", autoSave = true, uploadCk = true)
public class LogHuaShiGangChoosePatronsLog extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "活动小类型")
    private int childType;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "门客id")
    private int patronsId;
    @FieldTypeAnnotation(desc = "原始值")
    private int oldAddition;
    @FieldTypeAnnotation(desc = "变更值")
    private int distanceAddition;
    @FieldTypeAnnotation(desc = "当前值")
    private int newAddition;

    public LogHuaShiGangChoosePatronsLog(int activityId, int childType, long userId, int patronsId, int oldAddition, int distanceAddition, int newAddition) {
        this.activityId = activityId;
        this.childType = childType;
        this.userId = userId;
        this.patronsId = patronsId;
        this.oldAddition = oldAddition;
        this.distanceAddition = distanceAddition;
        this.newAddition = newAddition;
    }

    public long getUserId() {
        return userId;
    }
}
